package com.jyxd.web.controller.patient;

import com.jyxd.web.data.dto.HttpResult;
import com.jyxd.web.service.patient.PatientDiagnosisService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping(value = "/patientDiagnosis")
public class PatientDiagnosisController {

    @Autowired
    private PatientDiagnosisService patientDiagnosisService;


    @ApiOperation("根据患者id查询患者最新诊断")
    @RequestMapping(value = "/queryDataByPatientId", method = RequestMethod.POST)
    @ResponseBody
    public HttpResult queryDataByPatientId(@RequestBody Map<String, Object> map) {
        return patientDiagnosisService.queryDataByPatientId(map);
    }
}
